execute as @p at @s run tp @e[tag=EVENT_auto_rotate,limit=1,sort=nearest] ~ ~ ~ ~ ~
tag @e remove EVENT_auto_rotate